﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

namespace School.Controls
{
    public partial class ArticleList : System.Web.UI.UserControl
    {
        private SqlDataReader sdr = null;
        public SqlDataReader DataSource
        {
            get { return sdr; }
            set { sdr = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            rep_ArticelItem.DataSource = sdr;
            rep_ArticelItem.DataBind();
        }
    }
}